package com.cxf.windex.enums;

public enum OperateEnum {
  REGISTER("register", "注册"),
  BONUS("bonus", "奖励"),
  BONUSFEE("bonus_fee", "奖励税款"),
  CERT("certified", "认证"),
  EVENT("event", "活动"),
  OTHER("other", "其它"),
  TXFROZE("tx_froze", "提现申请"),
  TXSUCCESS("tx_success", "提现成功"),
  TXFAIL("tx_fail", "提现失败"),
  TXFEE("tx_fee", "提现手续费"),
  INVITE("invite", "分销")
      ;

  private final String key;
  private final String desc;


  private OperateEnum(String key, String desc) {
    this.key = key;
    this.desc = desc;
  }

  public static OperateEnum getIdType(String idType) {
    OperateEnum[] its = values();
    OperateEnum[] arr$ = its;
    int len$ = its.length;

    for(int i$ = 0; i$ < len$; ++i$) {
      OperateEnum it = arr$[i$];
      if (it.getKey() .equals( idType)) {
        return it;
      }
    }
    return OTHER;
  }

  public String getKey() {
    return this.key;
  }

  public String getDesc() {
    return this.desc;
  }
}
